<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('确认当前农事')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-ncWork-edit" th:object="${ncStageMirror}">
        <input name="stageId" th:field="*{stageId}" type="hidden">
        <input  name="stageMirrorId" th:field="*{stageMirrorId}" type="hidden">

        <div class="form-group">
            <label class="col-sm-3 control-label">完成日期：</label>
            <div class="col-sm-8">
                <input id="finishTime"  data-format="yyyy-MM-dd" name="finishTime" required
                       th:value="*{#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}" class="form-control"
                       type="text" th:class="time-input">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea id="remark" rows="3" name="remark" th:field="*{remark}" class="form-control" type="text"></textarea>
            </div>
        </div>


    </form>
</div>
<div th:include="include::footer"></div>

<script th:inline="javascript" type="text/javascript">
    var prefix = ctx + "system/ncWork";
    $("#form-ncWork-edit").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/confirmStage", $('#form-ncWork-edit').serialize(),function (result) {
                parent.reload();
            });
        }
    }


</script>
</body>
</html>
